package com.atguigu.orderservice.feign;

import com.atguigu.commonutils.orderVo.CourseOrdervo;
import org.springframework.beans.BeanUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author lzc <1029669636@qq.com>
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/1/13
 */
@Component
@FeignClient(name = "service-edu")
public interface EduCourseFeign {
    /**
     * 获取支付订单生成时课程信息
     * @return
     */
    @GetMapping("/eduservice/course/courseOrder/{courseId}")
    public CourseOrdervo getCourseOrdervo(@PathVariable("courseId") String courseId);
}
